[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FPUTPAD IEXP1,SEXP,IEXP2
Function
Put(write) a line or lines of a width specified by IEXP2 to an open file
specified by channel IEXP1.
Syntax
FPUT chan,exp,width
chan - An integer expression with the channel to write to (0 through 7).
exp - An expression of any type to evaluate and write to chan.
width - An integer expression with the width to use to write exp.
Valid values are -256 through 256
Remarks
This statement will evalutate an expressions of any type and write the
result to the specified channel number. This statement will append a
carriage return/line feed sequence to the end of the expression after
padding it to the specified width with spaces. If width is positive,
then exp will be written right justified (left padded) to the file. If
width is negative, then exp will be written left justified (right
padded) to the file.
Examples
FAPPEND 1,"FILE.DAT",O_WR,S_DB
FPUTPAD 1,U_NAME(),40
FPUTPAD 1,U_DATE(),20
FPUTPAD 1,U_TIME(),20
FCLOSE 1
See Also:
FGET
FPUT/FPUTLN
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson